<!DOCTYPE html>
<html lang="zh-CN">





<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/michuanblog/img/favicon.png">
  <link rel="icon" type="image/png" href="/michuanblog/img/favicon.png">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="Coding">
  <meta name="author" content="胡晗">
  <meta name="keywords" content="">
  <title>lcof_content - 胡晗&#39;s Blog</title>

  <link  rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.staticfile.org/github-markdown-css/4.0.0/github-markdown.min.css" />
  <link  rel="stylesheet" href="/michuanblog/lib/hint/hint.min.css" />

  
    <link  rel="stylesheet" href="https://cdn.staticfile.org/highlight.js/10.0.0/styles/github-gist.min.css" />
  

  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_yg9cfy8wd6.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_pjno9b9zyxs.css">


<link  rel="stylesheet" href="/michuanblog/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script  src="/michuanblog/js/utils.js" ></script>
<meta name="generator" content="Hexo 4.2.1"></head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/michuanblog/">&nbsp;<strong>MiChuan</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/michuanblog/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/michuanblog/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/michuanblog/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/michuanblog/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/michuanblog/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="view intro-2" id="background" parallax=true
         style="background: url('/michuanblog/img/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="container text-center white-text fadeInUp">
            <span class="h2" id="subtitle">
              
            </span>

            
              
  <div class="mt-3 post-meta">
    <i class="iconfont icon-date-fill" aria-hidden="true"></i>
    <time datetime="2020-08-08 10:59">
      2020年8月8日 上午
    </time>
  </div>


<div class="mt-1">
  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      1k 字
    </span>
  

  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      11
       分钟
    </span>
  

  
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid">
  <div class="row">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-md">
      <div class="container nopadding-md" id="board-ctn">
        <div class="py-5" id="board">
          <div class="post-content mx-auto" id="post">
            
            <article class="markdown-body">
              <h2 id="剑指Offer-LeetCode版"><a href="#剑指Offer-LeetCode版" class="headerlink" title="剑指Offer LeetCode版"></a>剑指Offer LeetCode版</h2><h3 id="简单题——42道"><a href="#简单题——42道" class="headerlink" title="简单题——42道"></a>简单题——42道</h3><div class="table-container">
<table>
<thead>
<tr>
<th>题号</th>
<th>解法</th>
</tr>
</thead>
<tbody>
<tr>
<td>3 数组中重复的数字</td>
<td>遍历+基数计数</td>
</tr>
<tr>
<td>4 二维数组中查找</td>
<td>左下角标志</td>
</tr>
<tr>
<td>5 替换空格</td>
<td>遍历</td>
</tr>
<tr>
<td>6 从尾到头打印链表</td>
<td>栈</td>
</tr>
<tr>
<td>9 两个栈实现队列</td>
<td>队列、栈</td>
</tr>
<tr>
<td>10-I 斐波拉契</td>
<td>保存中间值</td>
</tr>
<tr>
<td>10-II 青蛙跳台阶问题</td>
<td>斐波拉契</td>
</tr>
<tr>
<td>11 旋转数组的最小数字</td>
<td>遍历</td>
</tr>
<tr>
<td>15 二进制中1的个数</td>
<td>位运算，n&amp;n-1</td>
</tr>
<tr>
<td>17 打印从1到最大的n位数</td>
<td>遍历</td>
</tr>
<tr>
<td>18 删除链表节点</td>
<td>遍历</td>
</tr>
<tr>
<td>21 调整数组顺序为奇数在前</td>
<td>双指针</td>
</tr>
<tr>
<td>22 链表中倒数第K个节点</td>
<td>快慢指针</td>
</tr>
<tr>
<td>24 反转链表</td>
<td>四指针操作</td>
</tr>
<tr>
<td>25 合并两个排序链表</td>
<td>比较摘取第一个节点</td>
</tr>
<tr>
<td>27 二叉树的镜像</td>
<td>递归</td>
</tr>
<tr>
<td>28 对称的二叉树</td>
<td>递归</td>
</tr>
<tr>
<td>29 顺时针打印矩阵</td>
<td>二维遍历、边界条件</td>
</tr>
<tr>
<td>30 包含min函数的栈</td>
<td>辅助栈</td>
</tr>
<tr>
<td>32-II 从上到下打印二叉树II</td>
<td>层序遍历、队列、标记层尾</td>
</tr>
<tr>
<td>39 数组中出现次数超过一半的数字</td>
<td>map、hashmap</td>
</tr>
<tr>
<td>40 最小的K个数</td>
<td>sort</td>
</tr>
<tr>
<td><strong>42 连续子数组的最大和</strong></td>
<td>分治</td>
</tr>
<tr>
<td>50 第一个只出现一次的字符</td>
<td>map、hashmap</td>
</tr>
<tr>
<td>52 两个链表的第一个公共节点</td>
<td>双指针、同步</td>
</tr>
<tr>
<td>53-l 在排序数组中查找数字I</td>
<td>遍历</td>
</tr>
<tr>
<td>53-II 0~n-1中缺失的数字</td>
<td>二分查找</td>
</tr>
<tr>
<td><strong>54 二叉搜索树的第K大节点</strong></td>
<td>逆中序遍历（右→根→左）</td>
</tr>
<tr>
<td>55-I 二叉树的深度</td>
<td>递归</td>
</tr>
<tr>
<td>55-II 平衡二叉树</td>
<td>递归</td>
</tr>
<tr>
<td>57 和为S的两个数字</td>
<td>二分查找</td>
</tr>
<tr>
<td>57-II 和为S的连续正数序列</td>
<td>等差公式、间隔法</td>
</tr>
<tr>
<td>58-I 翻转单词顺序</td>
<td>反向遍历</td>
</tr>
<tr>
<td>58-II 左旋转字符串（Simple）</td>
<td>遍历</td>
</tr>
<tr>
<td><strong>59-I 滑动窗口的最大值</strong></td>
<td>单调递减队列</td>
</tr>
<tr>
<td><strong>60 n个骰子的点数</strong></td>
<td>动态规划</td>
</tr>
<tr>
<td>61 扑克牌中的顺子</td>
<td>set</td>
</tr>
<tr>
<td>62 约瑟夫环</td>
<td>递归</td>
</tr>
<tr>
<td>65 不用加减乘除做加法</td>
<td>位运算</td>
</tr>
<tr>
<td><strong>66 构建乘积数组</strong></td>
<td>上下三角</td>
</tr>
<tr>
<td>68-I 二叉搜索树的最近公共祖先</td>
<td>搜索树特点</td>
</tr>
<tr>
<td><strong>68-II 二叉树的最近公共祖先</strong></td>
<td>递归、后序遍历</td>
</tr>
</tbody>
</table>
</div>
<h3 id="中等题——29道"><a href="#中等题——29道" class="headerlink" title="中等题——29道"></a>中等题——29道</h3><div class="table-container">
<table>
<thead>
<tr>
<th>题号</th>
<th>解法</th>
</tr>
</thead>
<tbody>
<tr>
<td>7 重建二叉树</td>
<td>前序遍历+中序遍历</td>
</tr>
<tr>
<td>12 矩阵中的路径</td>
<td>DFS</td>
</tr>
<tr>
<td>13 机器人的运动范围</td>
<td>DFS</td>
</tr>
<tr>
<td>14-I 剪绳子</td>
<td>数字规律</td>
</tr>
<tr>
<td>14-II 剪绳子II</td>
<td>数字规律</td>
</tr>
<tr>
<td><strong>16 数值的整数次方</strong></td>
<td>快速幂</td>
</tr>
<tr>
<td><strong>20 表示数值的字符串</strong></td>
<td>string、条件判断</td>
</tr>
<tr>
<td>26 树的子结构</td>
<td>递归</td>
</tr>
<tr>
<td>31 栈的压入、弹出序列</td>
<td>模拟</td>
</tr>
<tr>
<td>32-I 从上到下打印二叉树</td>
<td>层序遍历、队列</td>
</tr>
<tr>
<td>32-III 之字层序打印二叉树</td>
<td>队列</td>
</tr>
<tr>
<td><strong>33 二叉搜索树的后序遍历序列</strong></td>
<td>单调递增辅助栈</td>
</tr>
<tr>
<td>34 二叉树中和为某一值的路径</td>
<td>回溯+先序</td>
</tr>
<tr>
<td><strong>35 复杂链表的复制</strong></td>
<td>hashmap</td>
</tr>
<tr>
<td>36 二叉搜索树与双向链表</td>
<td>中序遍历+DFS</td>
</tr>
<tr>
<td><strong>38 字符串的排列</strong></td>
<td>回溯+剪枝</td>
</tr>
<tr>
<td>43 1~n整数中1出现的次数</td>
<td>数字规律</td>
</tr>
<tr>
<td>44 数字序列中某一位的数字</td>
<td>数字规律</td>
</tr>
<tr>
<td><strong>45 把数组排成最小的数</strong></td>
<td>快排+Lambda表达式</td>
</tr>
<tr>
<td>46 把数字翻译成字符串</td>
<td>数字规律</td>
</tr>
<tr>
<td><strong>47 礼物的最大价值</strong></td>
<td>动态规划</td>
</tr>
<tr>
<td>48 最长不含重复字符的子字符串</td>
<td>双指针</td>
</tr>
<tr>
<td><strong>49 丑数</strong></td>
<td>动态规划</td>
</tr>
<tr>
<td>56-I 数组中数字出现的次数I</td>
<td>分组异或</td>
</tr>
<tr>
<td>56-II 数组中数字出现的次数II</td>
<td>map、位运算</td>
</tr>
<tr>
<td>59-II 队列的最大值</td>
<td>双队列</td>
</tr>
<tr>
<td><strong>63 股票的最大利润</strong></td>
<td>动态规划</td>
</tr>
<tr>
<td>64 求1+2+…+n(Medium)</td>
<td>&amp;&amp;逻辑</td>
</tr>
<tr>
<td><strong>67 把字符串转换成整数</strong></td>
<td>分类讨论</td>
</tr>
</tbody>
</table>
</div>
<h3 id="困难题——4道"><a href="#困难题——4道" class="headerlink" title="困难题——4道"></a>困难题——4道</h3><div class="table-container">
<table>
<thead>
<tr>
<th>题号</th>
<th>解法</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>19 正则表达式匹配</strong></td>
<td>动态规划</td>
</tr>
<tr>
<td><strong>37 序列化二叉树</strong></td>
<td>层序</td>
</tr>
<tr>
<td><strong>41 数据流中的中位数</strong></td>
<td>大顶堆+小顶堆</td>
</tr>
<tr>
<td><strong>51 数组中的逆序对</strong></td>
<td>归并排序</td>
</tr>
</tbody>
</table>
</div>

            </article>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                  <div class="post-meta mr-3">
                    <i class="iconfont icon-category"></i>
                    
                      <a class="hover-with-bg" href="/michuanblog/categories/LeetCode/">LeetCode</a>
                    
                  </div>
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/michuanblog/tags/LeetCode/">LeetCode</a>
                    
                      <a class="hover-with-bg" href="/michuanblog/tags/C/">C++</a>
                    
                      <a class="hover-with-bg" href="/michuanblog/tags/LCOF/">LCOF</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" target="_blank" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！</p>
              
              
                <div class="post-prevnext row">
                  <div class="post-prev col-6">
                    
                    
                      <a href="/michuanblog/2020/08/13/%E9%9D%A2%E8%AF%95%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">面试基础知识</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </div>
                  <div class="post-next col-6">
                    
                    
                      <a href="/michuanblog/2020/07/26/%E8%87%B4%E6%9C%AA%E6%9D%A5%E7%9A%84%E8%AF%97%E4%BA%BA/">
                        <span class="hidden-mobile">致未来的诗人</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </div>
                </div>
              
            </div>

            
              <!-- Comments -->
              <div class="comments" id="comments">
                
                
  <div id="vcomments"></div>
  <script type="text/javascript">
    function loadValine() {
      addScript('https://cdn.staticfile.org/valine/1.4.14/Valine.min.js', function () {
        new Valine({
          el: "#vcomments",
          app_id: "tKy1BysLG32PuX7L8s0rQi9C-gzGzoHsz",
          app_key: "wlDiPjGWwM0U49QD4CpxH5dz",
          placeholder: "说点什么",
          path: window.location.pathname,
          avatar: "retro",
          meta: ["nick","mail","link"],
          pageSize: "10",
          lang: "zh-CN",
          highlight: false,
          recordIP: false,
          serverURLs: "",
        });
      });
    }
    createObserver(loadValine, 'vcomments');
  </script>
  <noscript>Please enable JavaScript to view the <a href="https://valine.js.org" target="_blank" rel="nofollow noopener noopener">comments
      powered by Valine.</a></noscript>


              </div>
            
          </div>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div id="tocbot"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    
  </main>

  
    <a id="scroll-top-button" href="#" role="button">
      <i class="iconfont icon-arrowup" aria-hidden="true"></i>
    </a>
  

  
    <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
  

  
    <!-- APlayer 音乐播放器 -->
    <div id="aplayer"></div>
    <script defer src="https://cdn.staticfile.org/aplayer/1.10.1/APlayer.min.js" ></script>
<link  rel="stylesheet" href="https://cdn.staticfile.org/aplayer/1.10.1/APlayer.min.css" />
<script type="text/javascript">
  var oldLoadAp = window.onload;
  window.onload = function () {
    oldLoadAp && oldLoadAp();

    new APlayer({
      container: document.getElementById('aplayer'),
      fixed: true,
      autoplay: 'false' === 'true',
      loop: 'all',
      order: 'random',
      theme: '#b7daff',
      preload: 'none',
      audio: [{"name":"黄杨扁担","artist":"鹿女王","url":"http://mi_chuan.gitee.io/blog/黄杨扁担.mp3","cover":"http://mi_chuan.gitee.io/blog/黄杨扁担.png"},{"name":"隔世信","artist":"以冬","url":"http://mi_chuan.gitee.io/blog/隔世信.mp3","cover":"http://mi_chuan.gitee.io/blog/隔世信.jpg"}]
    });
  }
</script>

  

  

  <footer class="mt-5">
  <div class="text-center py-3">
    <div>
      <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a>
      <i class="iconfont icon-love"></i>
      <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener">
        <span>Fluid</span></a>
    </div>
    

    

    
  </div>
</footer>

<!-- SCRIPTS -->
<script  src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js" ></script>
<script  src="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/js/bootstrap.min.js" ></script>
<script  src="/michuanblog/js/debouncer.js" ></script>
<script  src="/michuanblog/js/main.js" ></script>

<!-- Plugins -->


  
    <script  src="/michuanblog/js/lazyload.js" ></script>
  



  <script defer src="https://cdn.staticfile.org/clipboard.js/2.0.6/clipboard.min.js" ></script>
  <script  src="/michuanblog/js/clipboard-use.js" ></script>







  <script  src="https://cdn.staticfile.org/tocbot/4.11.1/tocbot.min.js" ></script>
  <script>
    $(document).ready(function () {
      var boardCtn = $('#board-ctn');
      var boardTop = boardCtn.offset().top;

      tocbot.init({
        tocSelector: '#tocbot',
        contentSelector: 'article.markdown-body',
        headingSelector: 'h1,h2,h3,h4,h5,h6',
        linkClass: 'tocbot-link',
        activeLinkClass: 'tocbot-active-link',
        listClass: 'tocbot-list',
        isCollapsedClass: 'tocbot-is-collapsed',
        collapsibleClass: 'tocbot-is-collapsible',
        collapseDepth: 0,
        scrollSmooth: true,
        headingsOffset: -boardTop
      });
      if ($('.toc-list-item').length > 0) {
        $('#toc').css('visibility', 'visible');
      }
    });
  </script>



  <script  src="https://cdn.staticfile.org/typed.js/2.0.11/typed.min.js" ></script>
  <script>
    var typed = new Typed('#subtitle', {
      strings: [
        '  ',
        "lcof_content&nbsp;",
      ],
      cursorChar: "_",
      typeSpeed: 70,
      loop: false,
    });
    typed.stop();
    $(document).ready(function () {
      $(".typed-cursor").addClass("h2");
      typed.start();
    });
  </script>



  <script  src="https://cdn.staticfile.org/anchor-js/4.2.2/anchor.min.js" ></script>
  <script>
    anchors.options = {
      placement: "right",
      visible: "hover",
      
    };
    var el = "h1,h2,h3,h4,h5,h6".split(",");
    var res = [];
    for (item of el) {
      res.push(".markdown-body > " + item)
    }
    anchors.add(res.join(", "))
  </script>



  <script  src="/michuanblog/js/local-search.js" ></script>
  <script>
    var path = "/michuanblog/local-search.xml";
    var inputArea = document.querySelector("#local-search-input");
    inputArea.onclick = function () {
      searchFunc(path, 'local-search-input', 'local-search-result');
      this.onclick = null
    }
  </script>



  <script  src="https://cdn.staticfile.org/fancybox/3.5.7/jquery.fancybox.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.staticfile.org/fancybox/3.5.7/jquery.fancybox.min.css" />

  <script>
    $('#post img:not(.no-zoom img, img[no-zoom]), img[zoom]').each(
      function () {
        var element = document.createElement('a');
        $(element).attr('data-fancybox', 'images');
        $(element).attr('href', $(this).attr('src'));
        $(this).wrap(element);
      }
    );
  </script>





  

  
    <!-- MathJax -->
    <script>
      MathJax = {
        tex: {
          inlineMath: [['$', '$'], ['\\(', '\\)']]
        },
        options: {
          renderActions: {
            findScript: [10, doc => {
              document.querySelectorAll('script[type^="math/tex"]').forEach(node => {
                const display = !!node.type.match(/; *mode=display/);
                const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display);
                const text = document.createTextNode('');
                node.parentNode.replaceChild(text, node);
                math.start = { node: text, delim: '', n: 0 };
                math.end = { node: text, delim: '', n: 0 };
                doc.math.push(math);
              });
            }, '', false],
            insertedScript: [200, () => {
              document.querySelectorAll('mjx-container').forEach(node => {
                let target = node.parentNode;
                if (target.nodeName.toLowerCase() === 'li') {
                  target.parentNode.classList.add('has-jax');
                }
              });
            }, '', false]
          }
        }
      };
    </script>

    <script async src="https://cdn.staticfile.org/mathjax/3.0.5/es5/tex-svg.js" ></script>

  



  
  
    <script>
      !function (e, t, a) {
        function r() {
          for (var e = 0; e < s.length; e++) s[e].alpha <= 0 ? (t.body.removeChild(s[e].el), s.splice(e, 1)) : (s[e].y--, s[e].scale += .004, s[e].alpha -= .013, s[e].el.style.cssText = "left:" + s[e].x + "px;top:" + s[e].y + "px;opacity:" + s[e].alpha + ";transform:scale(" + s[e].scale + "," + s[e].scale + ") rotate(45deg);background:" + s[e].color + ";z-index:99999");
          requestAnimationFrame(r)
        }

        function n() {
          var t = "function" == typeof e.onclick && e.onclick;
          e.onclick = function (e) {
            t && t(), o(e)
          }
        }

        function o(e) {
          var a = t.createElement("div");
          a.className = "heart", s.push({
            el: a,
            x: e.clientX - 5,
            y: e.clientY - 5,
            scale: 1,
            alpha: 1,
            color: c()
          }), t.body.appendChild(a)
        }

        function i(e) {
          var a = t.createElement("style");
          a.type = "text/css";
          try {
            a.appendChild(t.createTextNode(e))
          } catch (t) {
            a.styleSheet.cssText = e
          }
          t.getElementsByTagName("head")[0].appendChild(a)
        }

        function c() {
          return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")"
        }

        var s = [];
        e.requestAnimationFrame = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) {
          setTimeout(e, 1e3 / 60)
        }, i(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"), n(), r()
      }(window, document);
    </script>
  








  <script  src="https://cdn.staticfile.org/mermaid/8.5.0/mermaid.min.js" ></script>
  <script>
    if (window.mermaid) {
      mermaid.initialize({"theme":"default"});
    }
  </script>







<script src="/michuanblog/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
